<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>变形与缩放</title>
	<style type="text/css">
		.pink{
			width: 200px;
			height: 200px;
			background-color: pink;
			margin: 100px auto;
		}
		.pink:hover{
			transform: scale(1.8,1.8);
		}

		.nb{
			width: 388px;
			height: 300px;
			margin: 200px auto;
			border: 1px solid pink;
			overflow: hidden;
		}
		img{
			transition: all 0.8s;
		}
		img:hover{
			transform: scale(1.3,1.3);
		}
	</style>
</head>
<body>
		<div class="pink">触摸有心跳的感觉</div>
		<div class="nb">
			<img src="images/chu.jpg">
		</div>
</body>
</html>